import 'package:flutter_ncsjqz_getx/generated/json/base/json_convert_content.dart';
import 'package:flutter_ncsjqz_getx/model/circle_type_entity.dart';

CircleTypeEntity $CircleTypeEntityFromJson(Map<String, dynamic> json) {
	final CircleTypeEntity circleTypeEntity = CircleTypeEntity();
	final String? msg = jsonConvert.convert<String>(json['msg']);
	if (msg != null) {
		circleTypeEntity.msg = msg;
	}
	final int? code = jsonConvert.convert<int>(json['code']);
	if (code != null) {
		circleTypeEntity.code = code;
	}
	final List<CircleTypeData>? data = jsonConvert.convertListNotNull<CircleTypeData>(json['data']);
	if (data != null) {
		circleTypeEntity.data = data;
	}
	return circleTypeEntity;
}

Map<String, dynamic> $CircleTypeEntityToJson(CircleTypeEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['msg'] = entity.msg;
	data['code'] = entity.code;
	data['data'] =  entity.data?.map((v) => v.toJson()).toList();
	return data;
}

CircleTypeData $CircleTypeDataFromJson(Map<String, dynamic> json) {
	final CircleTypeData circleTypeData = CircleTypeData();
	final dynamic? categoryType = jsonConvert.convert<dynamic>(json['categoryType']);
	if (categoryType != null) {
		circleTypeData.categoryType = categoryType;
	}
	final String? categoryName = jsonConvert.convert<String>(json['categoryName']);
	if (categoryName != null) {
		circleTypeData.categoryName = categoryName;
	}
	final String? pic = jsonConvert.convert<String>(json['pic']);
	if (pic != null) {
		circleTypeData.pic = pic;
	}
	return circleTypeData;
}

Map<String, dynamic> $CircleTypeDataToJson(CircleTypeData entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['categoryType'] = entity.categoryType;
	data['categoryName'] = entity.categoryName;
	data['pic'] = entity.pic;
	return data;
}